package com.antball;

import com.antball.model.Book;
import com.antball.model.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {

        ApplicationContext context = new ClassPathXmlApplicationContext("classpath:spring.xml");

        User user = (User) context.getBean("user");
        System.out.println( user );



        Book book = (Book) context.getBean("book");
        System.out.println( book );
    }
}
